package com.chenfan.mcn.model.vo;

import com.chenfan.mcn.enums.ApprovalStatusEnum;
import com.chenfan.mcn.model.IncomeContractAgreement;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author liuyang
 * @Date 2021/2/2
 * @Time 15:12
 * @Version V1.0
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class IncomeContractAgreementVO extends IncomeContractAgreement {

    private String flowIds;

    private Long flowId;

    /**
     * 审批流节点名称
     */
    private String flowStatusName;

    /**
     * 审批状态
     */
    private String approvalStatusName;

    public String getApprovalStatusName() {
        return ApprovalStatusEnum.getStatusName(this.getApprovalStatus());
    }
}
